package com.ruoyi.video.result;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;

/**
 * @author 兰剑
 * @version 1.0
 * @description: 返回结果
 * @date 2023/2/14 16:26
 */
@Data
@AllArgsConstructor
public class Result implements Serializable {

    public static  Result SUCCESS(){
        return new Result(true,"1","执行成功");
    }
    public static  Result FAIL(){
        return new Result(false,"0","执行失败");
    }

    private boolean success;

    //返回的业务码，1成功执行，0：发生错误 ,其他自定义
    private String code;
    private String message;

}
